<template>
    <footer class="footer">
        <div class="flex">
            <div class="key1">
                <van-icon name="service-o" />
            </div>
            <div class="info">
                <div class="btn btn-white btn-full">立即购买</div>
            </div>
            <div class="info">
                <div class="btn btn-full">加入购物车</div>
            </div>
        </div>
    </footer>
</template>

<script setup lang="ts">

</script>

<style lang="less" scoped>

.footer{
    height: 52px;
    &>div{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 52px;
        line-height: 52px;
        background-color: #ffffff;
        border-top: 1px solid #c7c7c7;
        overflow: hidden;
        z-index: 90;
        font-weight: 400;
        font-size: 14px;
        .key{
            
            flex-basis:  3.3rem;
            border-right: 1px solid #c7c7c7;

        }
    }
    .flex{
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: .6rem;
        .info{
            flex-grow: 1;
        }

    }
    .btn{
        display: inline-block;
        width: 2rem;
        background-color: #dd1a21;
        border: 1px solid #dd1a21;
        font-size: 14px;
        color: #fff;
        vertical-align: middle;
        text-align: center;
        box-sizing: border-box;
    }
    .btn-white{
        background-color: #fff;
        color: #333;
        border-color: #fff;
    }
    .btn-full{
        width: 100%;
    }
}
.key1{
    width: 77.2px;
    flex-shrink: 0;
    flex-grow: 0;
    border-right: 1px solid #c7c7c7;

}

</style>